<!DOCTYPE html>
<html>
<head>
    <title>设置</title>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="__CSS__/public.min.css">
</head>
<body ontouchstart>
<div class="page">
    <div class="header">
        <div class="header__hd"><a class="iconfont mb-mobile-back"></a></div>
        <h1 class="header__title">设置<span class="header__subtitle"></span></h1>
    </div>
    <div class="page__bd">
        <!-- 版本信息-->
        <div class="version-area"><img class="logo" src="__IMG__/logo.png">
            <div class="appname">阿拉贡</div>
            <div class="version-info"></div>
        </div>
        <!-- 列表-->
        <div class="cells">
            <a class="cell cell_access" href="/agreement">
                <div class="cell__bd">
                    <p>用户协议</p>
                </div>
                <div class="cell__ft"></div>
            </a>
            <a class="cell cell_access" href="/policy">
                <div class="cell__bd">
                    <p>隐私政策</p>
                </div>
                <div class="cell__ft"></div>
            </a>
            <a class="cell cell_access" href="javascript:ver()">
                <div class="cell__bd">
                    <p>版本更新</p>
                </div>
                <div class="cell__ft app_ver"></div>
            </a>
        </div>

        <div class="cells mt10">
            <div class="btn_cell btn_cell-default logout">退出登录</div>
        </div>
    </div>
</div>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/common.js?v={$Think.config.commonJs}"></script>
<script>
    function ver() {
        window.android._updateVersion('{$version}');
    }

    function app_ver(version) {
        var y = String(version).indexOf(".") + 1;//获取小数点的位置
        if (y > 0) {

        } else {
            version = version + '.0';
        }

        $(".version-info").html('当前版本号 ' + version);
        $(".app_ver").html(version);
    }

    $(".logout").click(function () {
        window.android._logout();
    });
</script>
</body>
</html>